#include <stdio.h>
#include <string.h>
#define N 5
struct Curriculum{
	char cName[10];
	int score;
};
struct Student{
	int id;
	struct Curriculum curriculum[3];
};
int main(){
	struct Student student[3]{
		{111,{"语文",100}},
		{222,{"数学",123}},
		{333,{"外语",23}}
	};
	int id;
	char cName[10];
	int score;
	
	scanf("%d",&id);
	gets(cName);//清空缓冲区
	gets(cName);
	scanf("%d",&score);
	
	
	for(int i=0;i<=2;i++){
		//判断id
		if(student[i].id==id){
			//判断课程
			for(int j=0;j<=2;j++){
				if(strcmp(student[i].curriculum[j].cName,cName)==0){
					student[i].curriculum[j].score = score;
				}
				printf("%d",	student[i].curriculum[j].score);
			}
			
		}
	}
}
